<template>
    <div>
        <a-card>
            <div slot="cover">
                <wljd-table :WljdDataSource="AllWljdInfo"></wljd-table>
            </div>
        </a-card>
    </div>
</template>

<script>
    import WljdTable from "@/views/my/components/WljdTable";
    import {getAction} from '@/api/manage'

    import ARow from "ant-design-vue/es/grid/Row";
    import ACol from "ant-design-vue/es/grid/Col";

    export default {
        name: 'DdManage',
        components: {ACol, ARow, WljdTable},
        mixins: [],
        data() {
            return {
                url: {
                    getAllWljdInfo: "/my/wljdInfo/getAllWljdInfo"
                },
                AllWljdInfo: "",
            }
        },
        created() {
            this.loadData()
        },
        methods: {
            loadData() {
                getAction(this.url.getAllWljdInfo).then((res) => {
                    if (res.success) {
                        console.log('AllWljdInfo', res.result);
                        this.AllWljdInfo = res.result;
                        for (var i = 0; i < this.AllWljdInfo.length; i++) {
                            this.AllWljdInfo[i].key = i + 1;
                        }
                    }
                })
            }
        }
    }
</script>

<style scoped>

</style>